package org.springblade.modules.platform.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
public class DeviceDetailsDTO {

    @ApiModelProperty(value = "属性集合")
    private List<AttributeVO> attributeVOList;


    @NoArgsConstructor
    @Data
    public static class AttributeVO {


        @ApiModelProperty(value = "数据类型")
        private String propertieId;

        private String propertieName;
		@ApiModelProperty(value = "单位")
		private String company;
        @ApiModelProperty(value = "折线")
        private List<DeviceVO> deviceVOS;

        @NoArgsConstructor
        @Data
        public static class DeviceVO {

            @ApiModelProperty(value = "时间")
            private Long times;
            @ApiModelProperty(value = "时间")
            private String gatherTime;
            @ApiModelProperty(value = "值")
            @JsonSerialize(nullsUsing = NullSerializer.class)
            private String value;


        }
    }







}
